package com.wenwu.pojo;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author: HWW
 * @Date: 2021/8/1615:57
 * @Desc:
 */
@Data
@ToString
@Entity
@Table(name="Dept")
@GenericGenerator(name = "jpa-assigned", strategy = "assigned")
public class Dept {
    private static final long serialVersionUID = -916357110051689486L;
    @Id
    @GeneratedValue(generator = "jpa-assigned")
    private String pid;
    private String pname;
}
